'use client';

import { useEffect } from 'react';
import { setupGlobalErrorHandler } from '@/utils/errorHandler';


// 错误边界组件
interface ErrorBoundaryProps {
  children: React.ReactNode;
}

export default function ErrorBoundary({ children }: ErrorBoundaryProps) {
  useEffect(() => {
    setupGlobalErrorHandler();
  }, []);

  return <>{children}</>;
} 